forum

Home / DeveloperSection / Forums / How to parse the value to float?

How to parse the value to float?

Anonymous User216009-May-2013
Hi!

How to parse a value to float? When I try to parse that generate error as following

My line of code as following

float rt = float.Parse("12.50%");

Error message

System.FormatException: Input string was not in a correct format.

Please resolve my problem. 

Thank in advance!

Updated on 09-May-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By